/*
 *@Type Usage.java
 * @Desc
 * @Author urmsone urmsone@163.com
 * @date 2024/6/13 03:59
 * @version
 */
package example;

import service.NormalStore;

import java.io.File;

public class StoreUsage {
    public static void main(String[] args) {
        String dataDir="data"+ File.separator;
        NormalStore store = new NormalStore(dataDir);
        store.set("zsy4","555");
//       store.set("zsy2","5");
//        store.set("zsy3","4");
//        store.set("zsy4","你好a");
        System.out.println(store.get("zsy4"));
        store.set("zsy4","666");
        System.out.println(store.get("zsy4"));

        // 插入超过阈值的数据条目
        for (int i = 0; i < 1025; i++) {
            store.set("key" + i, "value" + i);
        }


        // 其他测试逻辑
        System.out.println(store.get("key1024")); // 测试读取数据
       //store.rm("zsy4");
       //System.out.println(store.get("zsy4"));
    }
}
